Skip to content

feat: add SSH keepalive defaults (ServerAliveInterval/ServerAliveCountMax)#885

Merged
EhabY merged 1 commit intomainfrom
feat/ssh-keepalive-defaults
Apr 16, 2026
Merged

feat: add SSH keepalive defaults (ServerAliveInterval/ServerAliveCountMax)#885
EhabY merged 1 commit intomainfrom
feat/ssh-keepalive-defaults

Conversation

@EhabY
Copy link
Copy Markdown
Collaborator

@EhabY EhabY commented Apr 14, 2026

Related: #413

  • Adds ServerAliveInterval=10 and ServerAliveCountMax=3 as defaults for all Coder SSH connections. This detects dead connections within ~30 seconds, helping keep sessions alive through NATs and firewalls.
  • Renames SSHValues to SshValues for naming consistency.
  • Extracts a shared BASE_SSH_VALUES test fixture to reduce boilerplate (net -67 lines in tests).

Set ServerAliveInterval=10 and ServerAliveCountMax=3 as defaults for all
Coder SSH connections. This detects dead connections within ~30 seconds,
which helps keep sessions alive through NATs and firewalls.

Also renames SSHValues to SshValues for consistency and extracts a
shared BASE_SSH_VALUES test fixture to reduce boilerplate across tests.
@EhabY EhabY requested a review from mtojek April 15, 2026 21:32
Copy link
Copy Markdown
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@EhabY EhabY merged commit 29b39df into main Apr 16, 2026
6 checks passed
@EhabY EhabY deleted the feat/ssh-keepalive-defaults branch April 16, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants